package inter4.dao;/*
    @Auther:kongshan
    @Date:2023/6/6-06-06-21:31
    @Description:IntelliJ IDEA
    @version:


*/

import inter4.pojo.Student;

import java.util.HashMap;
import java.util.List;

public interface StudentDao {
//    //数据保存
//    public void saveStudent(Student student);
//    //显示数据
//    public List<Student> showAllStudent(Student student);
//    //根据编号删除一条数据
//    public void delStudent(int bh);
//    //根据编号返回实体
//    Student showStudentByBh(int bh);
//    //根据编号修改
//    int updateStudent(Student student);
//    //显示总行数
//    public int studentCount();
//    //分页查询
//    public List<Student> listStudentPage(HashMap map);
public int saveStudent(Student student);
    //显示列表
    public List<Student> showAllStudent();
    //根据编号显示实体
    public Student getStudentByBh(int bh);
    //修改数据
    public int updateStudent(Student student);
}
